package com.area.cth.mapper;

import com.area.cth.pojo.Deal;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 1
 * @description 针对表【deal】的数据库操作Mapper
 * @createDate 2024-10-16 09:26:39
 * @Entity generator.domain.Deal
 */

@Mapper
public interface DealMapper extends BaseMapper<Deal> {

    List<Deal> getBuyerMyDealList(Integer id);

    List<Deal> getSellerMyDealList(Integer id);

    @Select("select * from deal")
    IPage<Deal> dealList(Page<Deal> page);
}
